package com.qcby.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop {
    private Integer id;
    private String name;
    private String desc;
    private Double rating;
    private Integer ratingCount;
    private Integer ownerId;
    private String username;
    private String avatarUrl;
    private String shopName;
    private String shopDesc;
    private String verifyImg;
    private String businessLicense;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;
    private Integer indexId;
    private String description;
    private String bannerUrls;
    private Integer likeCount;
    private Integer checkCount;
    private Integer status;
    private Integer reviewCount;
    private Double longitude;
    private Double latitude;
    private Integer tagId;
    private String tagName;
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date openTime;
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date closeTime;
    private String aduitPerson;
    private String aduitDesc;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date aduitTime;
    private String otherDocuments;
}
